<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>{% block title %}{% endblock %}</title>
		<link rel="stylesheet" type="text/css" href="/public/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/public/css/layout.css" />
		<script src="/public/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="/public/js/masonry.js" type="text/javascript" charset="utf-8"></script>
		<script src="/public/js/config.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">小说后台管理</div>
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img src="http://t.cn/RCzsdCq" class="layui-nav-img"> {{name}}
						</a>
					</li>
					<li class="layui-nav-item">
						<a href="">退出</a>
					</li>
				</ul>
			</div>
			<div class="layui-side">
				<div class="layui-side-scroll">
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree" lay-filter="test">
						{% if navlist == 0 %}
						<li class="layui-nav-item layui-nav-itemed">
							{% else %}
						<li class="layui-nav-item">
							{% endif %}
							<a href="/">网站首页</a>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;">书籍管理</a>
							<dl class="layui-nav-child">
								{% if navlist == 1 %}
								<dd class="layui-this"><a href="/story">书籍列表</a></dd>
								{% else %}
								<dd><a href="/story">书籍列表</a></dd>
								{% endif %}
								{% if navlist == 2 %}
								<dd class="layui-this"><a href="/storytype">书籍分类</a></dd>
								{% else %}
								<dd><a href="/storytype">书籍分类</a></dd>
								{% endif %}
							</dl>
						</li>
						{% if navlist == 3 %}
						<li class="layui-nav-item layui-nav-itemed">
							<a href="/capture">采集管理</a>
						</li>
						{% else %}
						<li class="layui-nav-item">
							<a href="/capture">采集管理</a>
						</li>
						{% endif %}
						{% if navlist == 4 %}
						<li class="layui-nav-item layui-nav-itemed">
							<a href="/user">读者管理</a>
						</li>
						{% else %}
						<li class="layui-nav-item">
							<a href="/user">读者管理</a>
						</li>
						{% endif %}
						{% if navlist == 5 %}
						<li class="layui-nav-item layui-nav-itemed">
							<a href="/message">留言管理</a>
						</li>
						{% else %}
						<li class="layui-nav-item">
							<a href="/message">留言管理</a>
						</li>
						{% endif %}
						{% if navlist == 6 %}
						<li class="layui-nav-item layui-nav-itemed">
							<a href="/admin">管理员管理</a>
						</li>
						{% else %}
						<li class="layui-nav-item">
							<a href="/admin">管理员管理</a>
						</li>
						{% endif %}
						{% if navlist == 7 %}
						<li class="layui-nav-item layui-nav-itemed">
							<a href="/images">图片管理</a>
						</li>
						{% else %}
						<li class="layui-nav-item">
							<a href="/images">图片管理</a>
						</li>
						{% endif %}
					</ul>
				</div>
			</div>
			<div class="layui-breadcrumb">
				{% block crumbs %}{% endblock %}
			</div>
			<div class="layui-body" style="padding: 10px;">
				<!-- 内容主体区域 -->
				{% block body %}{% endblock %}
			</div>
			{% include "footer.html" %}
		</div>
		{% block template %}{% endblock %}
		{% block scripts %}{% endblock %}
	</body>

</html>